<?php

class request
{

    var $webInterfaces = array ();
    private $instnce = null;

	private function __construct()
	{
        $this->webInterfaces = array (
            "search" => array ( "uri-ns" => "srh" ),
            "article" => array ( "uri-ns" => "atcl" ),
        );
        /*
        if (magic_quotes_runtime(0)) {
            $str = $_POST["grammar"];
            $str = str_replace("\\\\", "\\", $str);
            $str = str_replace("\\'", "'", $str);
            $str = str_replace("\\\"", "\"", $str);
            $_POST["grammar"] = $str;
        }
        */
	}

	function __destruct()
	{
	    debug_out("die!!!!!!!!!!!!");
	}

	static function &GetInstnce()
	{
	    static $instance = null;
	    if (is_null($instance)) {
	        $instance = new request();
	    }
        return $instance;
	}

}

?>